ETCD_NAME="{{ inventory_hostname }}"
ETCD_DATA_DIR="{{ etcd_data }}"
ETCD_ENABLE_V2="true"
ETCD_INITIAL_CLUSTER="{% for item in etcd_cluster_hosts %}{{ item.host }}=http://{{ item.ip }}:2380,{% endfor %}"
ETCD_INITIAL_CLUSTER_STATE="new"
ETCD_INITIAL_CLUSTER_TOKEN="etcd-cluster"
ETCD_INITIAL_ADVERTISE_PEER_URLS="http://{% for item in etcd_cluster_hosts %}{% if inventory_hostname == item.host %}{{ item.ip }}{% endif %}{% endfor %}:2380"
ETCD_LISTEN_PEER_URLS="http://{% for item in etcd_cluster_hosts %}{% if inventory_hostname == item.host %}{{ item.ip }}{% endif %}{% endfor %}:2380"
ETCD_LISTEN_CLIENT_URLS="http://{% for item in etcd_cluster_hosts %}{% if inventory_hostname == item.host %}{{ item.ip }}{% endif %}{% endfor %}:2379,http://127.0.0.1:2379"
ETCD_ADVERTISE_CLIENT_URLS="http://{% for item in etcd_cluster_hosts %}{% if inventory_hostname == item.host %}{{ item.ip }}{% endif %}{% endfor %}:2379"
